import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import VueAMap from 'vue-amap'
import Print from 'vue-print-nb'
// import VueAwesomeSwiper from 'vue-awesome-swiper'
// import 'swiper/swiper-bundle.css'

import '@/components/spui'
import 'normalize.css/normalize.css'
import '@/plugins/element'
import './main.scss'
import './permission'
// 全局过滤器
import * as filters from '@/filters'

Vue.use(VueAMap)
// Vue.use(VueAwesomeSwiper)
Vue.use(Print)
VueAMap.initAMapApiLoader({
  key: '6a745d823f533555d549b94bc8b6b7c0',
  // key: 'd16744fce7b2cabb9ef70a63d6d5bbc3',
  plugin: [
    'AMap.Autocomplete',
    'AMap.PlaceSearch',
    'AMap.InfoWindow',
    'AMap.Marker',
    'AMap.LineSearch',
    'AMap.Polyline',
    'AMap.Scale',
    'AMap.OverView',
    'AMap.ToolBar',
    'AMap.MapType',
    'AMap.PolyEditor',
    'AMap.CircleEditor',
    'AMap.StationSearch'
  ],
  v: '2.0'
})

Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
